package com.ctcd.security;

import cn.hutool.core.io.FileUtil;
import cn.hutool.poi.excel.ExcelReader;
import cn.hutool.poi.excel.ExcelUtil;
import com.alibaba.excel.EasyExcel;
import com.ctcd.security.listener.DemoDataListener;
import com.ctcd.security.pojo.User;
import com.ctcd.security.pojo.UserData;
import com.ctcd.security.utils.ExcelOpration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;

@SpringBootApplication
@MapperScan("com.ctcd.security.mapper") //扫描mapper
public class Demo1Application {
    public static void main(String[] args) {
        SpringApplication.run(Demo1Application.class, args);

//        //每一行的所有数据
//        List<UserData> dataList = ExcelOpration.getAll();
//        //将每一行的数据更新
//        List<User> updateDept = ExcelOpration.updateDept(dataList, ExcelOpration.shift());
//        System.out.println(updateDept);
    }
}
